package com.vcar.LDiceClient.loader
{
    import com.vcar.LDiceClient.loader.PreloaderMediator;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    /**
     * preload初始化
     * @author rhj
     *
     */
    public class InitLoaderCommand extends SimpleCommand
    {
        public function InitLoaderCommand()
        {
            super();
        }

        /**
         * 初始化preloader
         * @param notification
         *
         */		
        override public function execute(notification:INotification):void
        {
            var m:PreloaderMediator=new PreloaderMediator(notification.getBody());
            facade.registerMediator(m);
        }

    }
}

